package com.gt.web.srv.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 券码信息
 * @TableName biz_coupon
 *
 */
@Data
@TableName(value ="biz_coupon")
public class Coupon extends BaseAuto {
    /**
     * 券ID
     */
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Long couponId;

    @TableField(value = "original_price")
    private String originalPrice;
    /**
     * 商户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    @TableField(value = "tenant_name")
    private String tenantName;

    /**
     * 券名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 券logo
     */
    @TableField(value = "logo")
    private String logo;

    /**
     * 可用时段
     */
    @TableField(value = "time_interal")
    private String timeInteral;

    /**
     * 可用门店
     */
    @TableField(value = "stores")
    private String stores;

    /**
     * 有效期类型 0 :自领取日多少天内有效,1:开始&结束
     */
    @TableField(value = "period_type")
    private Integer periodType;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 自领取日多少天内有效
     */
    @TableField(value = "days")
    private Integer days;

    /**
     * 库存类型 0：不限，1：限制
     */
    @TableField(value = "stock_type")
    private Integer stockType;

    /**
     * 券总量
     */
    @TableField(value = "stock")
    private Long stock;

    /**
     * 消耗积分数
     */
    @TableField(value = "points")
    private Integer points;

    /**
     * 领取量
     */
    @TableField(value = "draw")
    private Long draw;

    /**
     * 使用量
     */
    @TableField(value = "used")
    private Long used;

    /**
     * 核销方式:0:自助核销,1:其他
     */
    @TableField(value = "mode")
    private Integer mode;

    /**
     * 客服地址
     */
    @TableField(value = "wechat")
    private String wechat;

    /**
     * 使用说明
     */
    @TableField(value = "description")
    private String description;

    /**
     * 启用状态（0:启用 1:禁用)
     */
    @TableField(value = "status")
    private String status;

    /**
     * 类型 0:满减,1:打折券,2:兑换券
     */
    @TableField(value = "coupon_type")
    private Integer couponType;

    /**
     * 满多少金额
     */
    @TableField(value = "amount")
    private String amount;

    /**
     * 减免多少金额
     */
    @TableField(value = "reduce")
    private String reduce;

    /**
     * 多少折扣
     */
    @TableField(value = "discount")
    private String discount;

    /**
     * 兑换物
     */
    @TableField(value = "exchange_items")
    private String exchangeItems;

    /**
     * 活动开始时间
     */
    @TableField(value = "activity_start")
    private LocalDateTime activityStart;

    /**
     * 活动结束时间
     */
    @TableField(value = "activity_end")
    private LocalDateTime activityEnd;


    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}